package com.cloud.form.api.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.SelectProvider;

import com.cloud.form.api.bean.FormRepositoryCriteria;
import com.cloud.form.api.entity.RepoFormDef;
import com.cloud.form.api.provider.RepoFormDefProvider;
import com.cloud.form.common.utils.BaseMapperHelper;

public interface RepoFormDefMapper extends BaseMapperHelper<RepoFormDef> {

	@SelectProvider(type = RepoFormDefProvider.class, method = "listPage")
	@Results({
		@Result(property = "formId", column = "form_id", javaType = Long.class),
		@Result(property = "formName", column = "form_name", javaType = String.class),
		@Result(property = "print_snapshot_path", column = "print_snapshot_path", javaType = String.class)
	})
	List<RepoFormDef> selectRepoFrom(FormRepositoryCriteria criteria);
}